package com.lu.test.designpattern.listenermode.listenter.impl;

import com.lu.test.designpattern.listenermode.event.WeekendEvent;
import com.lu.test.designpattern.listenermode.event.impl.ShoppingEvent;
import com.lu.test.designpattern.listenermode.event.impl.SleepEvent;
import com.lu.test.designpattern.listenermode.listenter.WeekendListener;

public class SleepListener implements WeekendListener {
	@Override
	public void onEvent(WeekendEvent event) {
		if (event instanceof SleepEvent) {
			System.out.println(event.getName());
		}
	}
}
